package com.dxysun.design.flyweight;

import java.util.HashMap;
import java.util.Map;

public class FlyweightFactory
{
	private static Map<String, IFlyweight> flyweightMap = new HashMap<>();

	static
	{
		flyweightMap.put("flyWeight", new ConcreteFlyweight("不可变信息"));
	}

	public static IFlyweight getFlyweight(String str)
	{
		return flyweightMap.get(str);
	}
}
